package com.example.springboot.search.entity.dto;

import java.util.List;
import java.util.Map;

/**
 * 一键搜，历史记录查询
 * 
 * @date Sep 19, 2017:5:30:15 PM
 * @desc com.netbox.service.datamanager.entity.vo
 * @param <T>
 */
public class QueryDataVo<T> {

	// 查询状态:0表示成功，非0表示失败
	private Integer status = 0;

	// 查询返回状态消息
	private String msg = "ok";

	// 查询耗时,单位为毫秒
	private Long time = 0L;

	// 符合查询条件的总记录数
	private Long total = 0L;

	// 数据对象
	private T rows;

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public T getRows() {
		return rows;
	}

	public void setRows(T rows) {
		this.rows = rows;
	}

	@Override
	public String toString() {
		return "QueryDataVo [status=" + status + ", msg=" + msg + ", time=" + time + ", total=" + total + ", rows=" + rows + "]";
	}
}
